{% extends "admin/admin_base.html" %}

{% block title %}Administrators{% endblock title %}


{% block content %}
<div class="my-3 my-md-5">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <form action='/admin/password' method="post" method="post" class="card">
                    <div class="card-header">
                        <h3 class="card-title">Change My Password</h3>
                    </div>
                    <div class="card-body">
                        <div class="form-group">
                            <label class="form-label">Password<span class="form-required">*</span></label>
                            <input type="password" class="form-control" name="password" placeholder="New Password" required>
                        </div>
                    </div>
                    <div class="card-footer text-right">
                        <div class="d-flex">
                            <button type="submit" class="btn btn-primary ml-auto">Change</button>
                        </div>
                    </div>
                </form>
                <script>
                    require(['jquery', 'selectize'], function ($, selectize) {
                        $(document).ready(function () {
                            $('#input-tags').selectize({
                                delimiter: ',',
                                persist: false,
                                create: function (input) {
                                    return {
                                        value: input,
                                        text: input
                                    }
                                }
                            });

                            $('#select-beast').selectize({});

                            $('#select-users').selectize({
                                render: {
                                    option: function (data, escape) {
                                        return '<div>' +
                                            '<span class="image"><img src="' + data.image + '" alt=""></span>' +
                                            '<span class="title">' + escape(data.text) + '</span>' +
                                            '</div>';
                                    },
                                    item: function (data, escape) {
                                        return '<div>' +
                                            '<span class="image"><img src="' + data.image + '" alt=""></span>' +
                                            escape(data.text) +
                                            '</div>';
                                    }
                                }
                            });

                            $('#select-countries').selectize({
                                render: {
                                    option: function (data, escape) {
                                        return '<div>' +
                                            '<span class="image"><img src="' + data.image + '" alt=""></span>' +
                                            '<span class="title">' + escape(data.text) + '</span>' +
                                            '</div>';
                                    },
                                    item: function (data, escape) {
                                        return '<div>' +
                                            '<span class="image"><img src="' + data.image + '" alt=""></span>' +
                                            escape(data.text) +
                                            '</div>';
                                    }
                                }
                            });
                        });
                    });
                </script>
            </div>
        </div>
    </div>
</div>
{% endblock content %}
